package org.bigdata.leo.hbase.starter.sdk;

import org.apache.hadoop.hbase.client.Admin;

/**
 * <p>管理员相关操作的回调</p>
 * @author leo.jie (weixiao.me@aliyun.com)
 * @version 1.0
 * @organization bigdata
 * @website https://www.jielongping.com
 * @date 2020/3/30 9:13 下午
 * @since 1.0
 */
public interface AdminCallback<T> {
    /**
     * admin operation call back
     *
     * @param admin HBase Admin Object
     * @return 返回结果
     * @throws Throwable 异常抛出
     */
    T doInAdmin(Admin admin) throws Throwable;
}
